from gameset.phoenicia.base import *

from ..agriculture import Apples, Olives
from .pottery import Pottery


class Oil(PartiallyProcessedFood):
    singular =_ ('Oil')
    plural   =_ ('Oil')
    price    =_ (500)


class Juice(Beverage):
    singular  =_ ('Juice')
    plural    =_ ('Juice')
    price     =_ (400)
    happiness =_ (0.5)
    consumed  =_ (1)


class FruitPress(Workshop):
    name     =_ ('Fruit Press')
    color    =_ (Green.dark + Yellow)
    cost     =_ (200)
    staff    =_ (15)
    produces =_ (Production(input = (Olives(10), Pottery(1)), output = Oil  (10), duration = 2.5),
                 Production(input = (Apples(10), Pottery(1)), output = Juice(10), duration = 1.0))
